package com.timesheet.serverice;

import java.util.Date;
import java.util.List;

import com.timesheet.server.common.models.EffortTrackerDTO;
import com.timesheet.server.dao.EffortTrackerDao;

public class EffortTrackerService {

	EffortTrackerDao dao = new EffortTrackerDao();

	public EffortTrackerDao getEffortTrackerDao() {
		return dao;
	};

	public void setDao(EffortTrackerDao dao) {
		this.dao = dao;
	}

	public List<EffortTrackerDTO> getDailyEffortsForAWeekend(String empId,
			String projId, Date weekDate) {
		return dao.getDailyEffortsForAWeekend(empId, projId, weekDate);
	}

	public List<EffortTrackerDTO> getWSR(String empId, String projId,
			Date weekDate) {
		return dao.getWSR(empId, projId, weekDate);
	}

	public boolean fillEfforts(EffortTrackerDTO cEffortTracker)
			throws Exception {

		return dao.fillEfforts(cEffortTracker);
	}

	public boolean deleteEffort(EffortTrackerDTO trackerDTO) throws Exception {

		return dao.deleteEffort(trackerDTO);
	}

	public boolean update(EffortTrackerDTO cEffortTracker) {
		return dao.updateEffortTracker(cEffortTracker);
	}
	
	

}
